package com.bytz.modules.cms.echop.service;

import com.bytz.modules.cms.order.entity.Order;
import com.bytz.modules.cms.order.entity.OrderItem;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IEChopService {
    /**
     * 生成合同
     */
    void generateContract(Order order, List<OrderItem> items);

    /**
     * 转发e-chop请求，根据订单id下载合同
     */
    void getContractByOrderId(String id, HttpServletRequest request, HttpServletResponse response) throws Exception;
}
